﻿using BLL;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WindowsForms
{
    public partial class TestDataSource : Form
    {
        public TestDataSource()
        {
            InitializeComponent();
        }

        private void TestDataSource_Load(object sender, EventArgs e)
        {
            MemberManage memberbll = new MemberManage();
            dataGridView1.AutoGenerateColumns = false;
            string sql = "select * from member,club,department where member.clubid=club.clubid and member.departmentid=department.departmentid";
            dataGridView1.DataSource = memberbll.GetMembersByCondition(sql);
        }
    }
}
